package com.qd.hik.dto.invoice;

import lombok.Data;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * 〈一句话功能简述〉<br>
 *
 * @author sjk
 * @create 2024-05-29 16:09
 * @since 1.0.0
 */
@Data
@Accessors(chain = true)
public class HkInvoiceRecordsResp {
    /**
     * 总页数
     */
    private Integer totalPage;
    /**
     * 当前页码
     */
    private Integer pageNo;
    /**
     * 开票记录
     */
    private List<HkInvoiceDetailResp> results;

    public void freeData() {
        this.totalPage = null;
        this.pageNo = null;
        if (results != null) {
            results.forEach(HkInvoiceDetailResp::freeData);
        }
    }
}